﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>[abc]表达式的应用示例</title>
</head>
<body>
    <script>
        var str = "Hello JavaScript！";
        var patt1 = /[a-h]/g;
        document.write(str.match(patt1));
    </script>
</body>
</html>